package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * sys_notice（通知公告表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_notice")
@ApiModel(value = "SysNotice对象", description = "sys_notice（通知公告表）")
public class SysNotice extends Model<SysNotice> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流水ID")
    @TableId("notice_id")
    private String noticeId;

    @ApiModelProperty(value = "标题")
    @TableField("notice_title")
    private String noticeTitle;

    @ApiModelProperty(value = "通知类型(0、轮播公告，1、普通公告，2、链接公告)")
    @TableField("notice_type")
    private Integer noticeType;

    @ApiModelProperty(value = "封面图片")
    @TableField("notice_cover")
    private String noticeCover;

    @ApiModelProperty(value = "公告链接")
    @TableField("notice_link")
    private String noticeLink;

    @ApiModelProperty(value = "是否删除：0：未删除，1：已删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "是否显示：0显示、1不显示")
    @TableField("is_display")
    private Integer isDisplay;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private Long startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private Long endTime;

    @TableField("create_user_id")
    private String createUserId;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_user_id")
    private String updateUserId;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.noticeId;
    }

}
